package com.buka.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.buka.domain.ResponseResult;
import com.buka.dto.RoleDto;
import com.buka.pojo.Role;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【sys_role(角色信息表)】的数据库操作Service
 * @createDate 2024-05-28 16:35:11
 */
public interface RoleService extends IService<Role> {
    public List<String> selectRoleKeyByUserId(Long id);

    ResponseResult list(int pageNum, int pageSize, String roleName, int status);

    ResponseResult changeStatus(com.buka.dto.RoleDto roleDto);

    ResponseResult add(RoleDto roleDto);

    ResponseResult getRoleById(int id);

    ResponseResult updateRole(RoleDto roleDto);

    ResponseResult listAllRole();

    ResponseResult deleteRoles(Long[] ids);
}
